Electronic Device Having Antenna Tuning Integrated Circuits With Sensors

ABSTRACT

An electronic device may be provided with wireless circuitry. The wireless circuitry may include one or more antennas. An antenna may have an antenna feed that is coupled to a radio-frequency transceiver with a transmission line. An impedance matching circuit may be coupled to the antenna feed to match the impedance of the transmission line and the antenna. The impedance matching circuit and tunable circuitry in the antenna may be formed using integrated circuits. Each integrated circuit may include switching circuitry that is used in switching components such as inductors and capacitors into use. Sensors such as temperature sensors, current and voltage sensors, power sensors, and impedance sensors may be integrated into the integrated circuits. Each integrated circuit may store settings for the switching circuitry and may include communications and control circuitry for communicating with external circuits and processing sensor data.

This application is a continuation of patent application Ser. No.14/980,574 filed on Dec. 28, 2015, which claims the benefit ofprovisional patent application No. 62/101,901 filed on Jan. 9, 2015,both of which are hereby incorporated by reference herein in theirentireties. This application claims the benefit of and claims priorityto patent application Ser. No. 14/980,574 filed on Dec. 28, 2015, andprovisional patent application No. 62/101,901 filed on Jan. 9, 2015.

BACKGROUND

This relates generally to electronic devices and, more particularly, toelectronic devices with wireless communications circuitry.

Electronic devices often include wireless communications circuitry. Forexample, cellular telephones, computers, and other devices often containantennas and wireless transceivers for supporting wirelesscommunications.

It can be challenging to form electronic device antenna structures withdesired attributes. In some wireless devices, the presence of conductivestructures can influence antenna performance. For example, the presenceof conductive housing structures or other device structures may limitthe volume available for implementing antennas. This can adverselyaffect antenna bandwidth. Antenna tuning techniques may be used tocompensate for limited antenna bandwidth, but unless a tunable antennais operated appropriately, antenna performance may be degraded due tononlinearities and detuning effects.

It would therefore be desirable to be able to provide improved wirelesscircuitry for electronic devices such as improved antenna circuitry.

SUMMARY

An electronic device may be provided with wireless circuitry. Thewireless circuitry may include one or more antennas. An antenna may havean antenna feed that is coupled to a radio-frequency transceiver with atransmission line. An impedance matching circuit may be coupled to theantenna feed to match the impedance of the transmission line and theantenna. The antenna may also have adjustable circuitry for tuning theantenna. For example, the antenna may have a tunable circuit that iscoupled between a resonating element and an antenna ground.

The impedance matching circuit and adjustable antenna tuning circuitryin the antenna may be formed from using integrated circuits. Eachintegrated circuit may include switching circuitry that is used inswitching components such as inductors and capacitors into use. Sensorssuch as temperature sensors, current and voltage sensors, power sensors,and impedance sensors may be formed within the integrated circuits. Eachintegrated circuit may store settings for the switching circuitry andmay include communications and control circuitry. The communications andcontrol circuitry may be used to process sensor data and to supportcommunications with external circuits.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a perspective view of an illustrative electronic device withwireless communications circuitry in accordance with an embodiment.

FIG. 2 is a schematic diagram of an illustrative electronic device withwireless communications circuitry in accordance with an embodiment.

FIG. 3 is a diagram of illustrative wireless circuitry in accordancewith an embodiment.

FIG. 4 is a diagram of an illustrative antenna in accordance with anembodiment.

FIG. 5 is a diagram of an illustrative current sensor in accordance withan embodiment.

FIG. 6 is a diagram of an illustrative voltage sensor in accordance withan embodiment.

FIG. 7 is a diagram of an illustrative impedance sensor based on adirectional coupler in accordance with an embodiment.

FIG. 8 is a diagram of an illustrative temperature sensor in accordancewith an embodiment.

FIG. 9 is a diagram of an illustrative power sensor in accordance withan embodiment.

FIG. 10 is a diagram of an illustrative tunable antenna circuit such asa tunable impedance matching circuit in accordance with an embodiment.

FIG. 11 is a diagram of an illustrative tunable antenna circuit such asan antenna aperture tuner in accordance with an embodiment.

DETAILED DESCRIPTION

An electronic device such as electronic device 10 of FIG. 1 may containwireless circuitry. The wireless circuitry may include one or moreantennas. Tunable circuits may be used to adjust the wireless circuitry.The tunable circuits may include one or more integrated circuits.Sensors may be incorporated into the tunable circuits. For example,sensors may be formed on the integrated circuits. Information from thesensors may be used in adjusting the tunable circuits and otherwiseoperating the wireless circuitry of electronic device 10.

The wireless circuitry of device 10 may, for example, include a GlobalPosition System (GPS) receiver that handles GPS satellite navigationsystem signals at 1575 MHz or a GLONASS receiver that handles GLONASSsignals at 1609 MHz. Device 10 may also contain wireless communicationscircuitry that operates in communications bands such as cellulartelephone bands and wireless circuitry that operates in communicationsbands such as the 2.4 GHz Bluetooth® band and the 2.4 GHz and 5 GHzWiFi® wireless local area network bands (sometimes referred to as IEEE802.11 bands or wireless local area network communications bands). Ifdesired, device 10 may also contain wireless communications circuitryfor implementing near-field communications, light-based wirelesscommunications, or other wireless communications (e.g., communicationsat 13.56 MHz, communications at 60 GHz, etc.).

Electronic device 10 may be a computing device such as a laptopcomputer, a computer monitor containing an embedded computer, a tabletcomputer, a cellular telephone, a media player, or other handheld orportable electronic device, a smaller device such as a wrist-watchdevice, a pendant device, a headphone or earpiece device, a deviceembedded in eyeglasses or other equipment worn on a user's head, orother wearable or miniature device, a television, a computer displaythat does not contain an embedded computer, a gaming device, anavigation device, an embedded system such as a system in whichelectronic equipment with a display is mounted in a kiosk or automobile,equipment that implements the functionality of two or more of thesedevices, or other electronic equipment. In the illustrativeconfiguration of FIG. 1, device 10 is a portable device such as acellular telephone, media player, tablet computer, or other portablecomputing device. Other configurations may be used for device 10 ifdesired. The example of FIG. 1 is merely illustrative.

In the example of FIG. 1, device 10 includes a display such as display14. Display 14 has been mounted in a housing such as housing 12. Housing12, which may sometimes be referred to as an enclosure or case, may beformed of plastic, glass, ceramics, fiber composites, metal (e.g.,stainless steel, aluminum, etc.), other suitable materials, or acombination of any two or more of these materials. Housing 12 may beformed using a unibody configuration in which some or all of housing 12is machined or molded as a single structure or may be formed usingmultiple structures (e.g., an internal frame structure, one or morestructures that form exterior housing surfaces, etc.).

Display 14 may be a touch screen display that incorporates a layer ofconductive capacitive touch sensor electrodes or other touch sensorcomponents (e.g., resistive touch sensor components, acoustic touchsensor components, force-based touch sensor components, light-basedtouch sensor components, etc.) or may be a display that is nottouch-sensitive. Capacitive touch screen electrodes may be formed froman array of indium tin oxide pads or other transparent conductivestructures.

Display 14 may include an array of display pixels formed from liquidcrystal display (LCD) components, an array of electrophoretic displaypixels, an array of plasma display pixels, an array of organiclight-emitting diode display pixels, an array of electrowetting displaypixels, or display pixels based on other display technologies.

Display 14 may be protected using a display cover layer such as a layerof transparent glass or clear plastic. Openings may be formed in thedisplay cover layer. For example, an opening may be formed in thedisplay cover layer to accommodate a button such as button 16. Anopening may also be formed in the display cover layer to accommodateports such as a speaker port. Openings may be formed in housing 12 toform communications ports (e.g., an audio jack port, a digital dataport, etc.). Openings in housing 12 may also be formed for audiocomponents such as a speaker and/or a microphone.

Antennas may be mounted in housing 12. For example, housing 12 may havefour peripheral edges as shown in FIG. 1 and one or more antennas may belocated along one or more of these edges. As shown in the illustrativeconfiguration of FIG. 1, antennas may, if desired, be mounted in regions20 along opposing peripheral edges of housing 12 (as an example).Antennas may also be mounted in other portions of device 10, if desired.The configuration of FIG. 1 is merely illustrative.

A schematic diagram showing illustrative components that may be used indevice 10 is shown in FIG. 2. As shown in FIG. 2, device 10 may includecontrol circuitry such as storage and processing circuitry 30. Storageand processing circuitry 30 may include storage such as hard disk drivestorage, nonvolatile memory (e.g., flash memory or otherelectrically-programmable-read-only memory configured to form a solidstate drive), volatile memory (e.g., static or dynamicrandom-access-memory), etc. Processing circuitry in storage andprocessing circuitry 30 may be used to control the operation of device10. This processing circuitry may be based on one or moremicroprocessors, microcontrollers, digital signal processors, basebandprocessor integrated circuits, application specific integrated circuits,etc.

Storage and processing circuitry 30 may be used to run software ondevice 10, such as internet browsing applications,voice-over-internet-protocol (VOIP) telephone call applications, emailapplications, media playback applications, operating system functions,etc. To support interactions with external equipment, storage andprocessing circuitry 30 may be used in implementing communicationsprotocols. Communications protocols that may be implemented usingstorage and processing circuitry 30 include internet protocols, wirelesslocal area network protocols (e.g., IEEE 802.11 protocols—sometimesreferred to as WiFi®), protocols for other short-range wirelesscommunications links such as the Bluetooth® protocol, cellular telephoneprotocols, MIMO protocols, antenna diversity protocols, satellitenavigation system protocols, etc.

Device 10 may include input-output circuitry 44. Input-output circuitry44 may include input-output devices 32. Input-output devices 32 may beused to allow data to be supplied to device 10 and to allow data to beprovided from device 10 to external devices. Input-output devices 32 mayinclude user interface devices, data port devices, and otherinput-output components. For example, input-output devices may includetouch screens, displays without touch sensor capabilities, buttons,joysticks, scrolling wheels, touch pads, key pads, keyboards,microphones, cameras, speakers, status indicators, light sources, audiojacks and other audio port components, digital data port devices, lightsensors, accelerometers or other components that can detect motion anddevice orientation relative to the Earth, capacitance sensors, proximitysensors (e.g., a capacitive proximity sensor and/or an infraredproximity sensor), magnetic sensors, a connector port sensor or othersensor that determines whether device 10 is mounted in a dock, and othersensors and input-output components.

Input-output circuitry 44 may include wireless communications circuitry34 for communicating wirelessly with external equipment. Wirelesscommunications circuitry 34 may include radio-frequency (RF) transceivercircuitry formed from one or more integrated circuits, power amplifiercircuitry, low-noise input amplifiers, passive RF components, one ormore antennas 40, transmission lines, and other circuitry for handlingRF wireless signals. Wireless signals can also be sent using light(e.g., using infrared communications).

Wireless communications circuitry 34 may include radio-frequencytransceiver circuitry 90 for handling various radio-frequencycommunications bands. For example, circuitry 34 may include transceivercircuitry 36, 38, and 42.

Transceiver circuitry 36 may be wireless local area network transceivercircuitry that may handle 2.4 GHz and 5 GHz bands for WiFi® (IEEE802.11) communications and that may handle the 2.4 GHz Bluetooth®communications band.

Circuitry 34 may use cellular telephone transceiver circuitry 38 forhandling wireless communications in frequency ranges such as a lowcommunications band from 700 to 960 MHz, a midband from 1710 to 2170MHz, and a high band from 2300 to 2700 MHz or other communications bandsbetween 700 MHz and 2700 MHz or other suitable frequencies (asexamples). Circuitry 38 may handle voice data and non-voice data.

Wireless communications circuitry 34 can include circuitry for othershort-range and long-range wireless links if desired. For example,wireless communications circuitry 34 may include 60 GHz transceivercircuitry, circuitry for receiving television and radio signals, pagingsystem transceivers, near field communications (NFC) circuitry, etc.

Wireless communications circuitry 34 may include satellite navigationsystem circuitry such as global positioning system (GPS) receivercircuitry 42 for receiving GPS signals at 1575 MHz or for handling othersatellite positioning data (e.g., GLONASS signals at 1609 MHz). In WiFi®and Bluetooth® links and other short-range wireless links, wirelesssignals are typically used to convey data over tens or hundreds of feet.In cellular telephone links and other long-range links, wireless signalsare typically used to convey data over thousands of feet or miles.Satellite navigation system signals for receiver 42 are received from aconstellation of satellites orbiting the earth.

Antennas 40 in wireless communications circuitry 34 may be formed usingany suitable antenna types. For example, antennas 40 may includeantennas with resonating elements that are formed from loop antennastructures, patch antenna structures, inverted-F antenna structures,slot antenna structures, planar inverted-F antenna structures, helicalantenna structures, hybrids of these designs, etc. If desired, one ormore of antennas 40 may be cavity-backed antennas. Different types ofantennas may be used for different bands and combinations of bands. Forexample, one type of antenna may be used in forming a local wirelesslink antenna and another type of antenna may be used in forming a remotewireless link antenna. Dedicated antennas may be used for receivingsatellite navigation system signals or, if desired, antennas 40 can beconfigured to receive both satellite navigation system signals andsignals for other communications bands (e.g., wireless local areanetwork signals and/or cellular telephone signals).

Transmission line paths may be used to couple antenna structures 40 totransceiver circuitry 90. Transmission lines in device 10 may includecoaxial cable paths, microstrip transmission lines, striplinetransmission lines, edge-coupled microstrip transmission lines,edge-coupled stripline transmission lines, transmission lines formedfrom combinations of transmission lines of these types, etc. Filtercircuitry, switching circuitry, impedance matching circuitry, and othercircuitry may be interposed within the transmission lines, if desired.

Device 10 may contain multiple antennas 40. The antennas may be usedtogether or one of the antennas may be switched into use while the otherantenna(s) may be switched out of use. If desired, control circuitry 30may be used to select an optimum antenna to use in device 10 in realtime and/or an optimum setting for tunable wireless circuitry associatedwith one or more of antennas 40. Sensors may be incorporated intoantennas 40 to gather sensor data in real time that is used in adjustingantennas 40.

As shown in FIG. 3, transceiver circuitry 90 in wireless circuitry 34may be coupled to antenna structures 40 using paths such as path 92.Wireless circuitry 34 may be coupled to control circuitry 30. Controlcircuitry 30 may be coupled to input-output devices 32. Input-outputdevices 32 may supply output from device 10 and may receive input fromsources that are external to device 10.

To provide antenna structures 40 with the ability to covercommunications frequencies of interest, antenna structures 40 may beprovided with circuitry such as filter circuitry (e.g., one or morepassive filters and/or one or more tunable filter circuits). Discretecomponents such as capacitors, inductors, and resistors may beincorporated into the filter circuitry. Capacitive structures, inductivestructures, and resistive structures may also be formed from patternedmetal structures (e.g., part of an antenna). If desired, antennastructures 40 may be provided with adjustable circuits such as tunablecomponents 102 to tune antennas over communications bands of interest.Tunable components 102 may include tunable inductors, tunablecapacitors, or other tunable components. Tunable components such asthese may be based on switches and networks of fixed components,distributed metal structures that produce associated distributedcapacitances and inductances, variable solid state devices for producingvariable capacitance and inductance values, tunable filters, or othersuitable tunable structures. During operation of device 10, controlcircuitry 30 may issue control signals on one or more paths such as path88 that adjust inductance values, capacitance values, or otherparameters associated with tunable components 102, thereby tuningantenna structures 40 to cover desired communications bands.Configurations in which antennas 40 are fixed (not tunable) may also beused.

Path 92 may include one or more transmission lines. As an example,signal path 92 of FIG. 3 may be a transmission line having a positivesignal conductor such as line 94 and a ground signal conductor such asline 96. Lines 94 and 96 may form parts of a coaxial cable or amicrostrip transmission line (as examples). An impedance matchingnetwork (matching circuit) formed from components such as inductors,resistors, and capacitors may be used in matching the impedance ofantenna structures 40 to the impedance of transmission line 92. Matchingnetwork components may be provided as discrete components (e.g., surfacemount technology components) or may be formed from housing structures,printed circuit board structures, traces on plastic supports, etc.Components such as these may also be used in forming filter circuitry inantenna structures 40.

Transmission line 92 may be coupled to antenna feed structuresassociated with antenna structures 40. As an example, antenna structures40 may form an inverted-F antenna, a slot antenna, a hybrid inverted-Fslot antenna or other antenna having an antenna feed with a positiveantenna feed terminal such as terminal 98 and a ground antenna feedterminal such as ground antenna feed terminal 100. Positive transmissionline conductor 94 may be coupled to positive antenna feed terminal 98and ground transmission line conductor 96 may be coupled to groundantenna feed terminal 92. Other types of antenna feed arrangements maybe used if desired. The illustrative feeding configuration of FIG. 3 ismerely illustrative.

Tunable circuitry for an antenna may be incorporated into a tunablematching network (e.g., an adjustable impedance matching circuit coupledto feed terminals 98 and 100) and/or an antenna aperture tuner (e.g.,tunable circuitry coupled to an antenna resonating element or otherstructure in an antenna that adjusts the resonant behavior of theantenna and therefore its frequency response). One or more integratedcircuits may be used in implementing tunable circuits such as tunableinductors, tunable capacitors, switches for switching a desired inductorand/or capacitor into use and thereby adjusting an inductance orcapacitance value for an antenna, etc. These integrated circuits mayinclude sensors. Data from the sensors may be used in real time todetermine how to make adjustments to the tunable circuits and how tomake other wireless circuit adjustments.

Tunable circuits and sensors may be incorporated into any suitable typeof antenna (patch, loop, slot, planar inverted-F, inverted-F, an antennathat includes multiple antenna structures such as these, etc.). Consideras an example, an illustrative antenna such as inverted-F antenna 40 ofFIG. 4. As shown in FIG. 4, inverted-F antenna 40 has antenna resonatingelement 106 and antenna ground (ground plane) 104. Antenna resonatingelement 106 may have a main resonating element arm such as arm 108. Thelength of arm 108 may be selected so that antenna 40 resonates atdesired operating frequencies. For example, the length of arm 108 may bea quarter of a wavelength at a desired operating frequency for antenna40. If desired, inverted-F antennas such as illustrative antenna 40 ofFIG. 4 may have more than one resonating arm branch (e.g., to createmultiple frequency resonances to support operations in multiplecommunications bands). Antenna 40 may also exhibit resonances atharmonic frequencies.

Main resonating element arm 108 may be coupled to ground 104 by returnpath 110. Antenna feed 112 may include positive antenna feed terminal 98and ground antenna feed terminal 100 and may run parallel to return path110 between arm 108 and ground 104. Antenna 40 of FIG. 4 may be a planarinverted-F antenna (e.g., arm 108 may have planar metal structures thatrun into the page in the orientation of FIG. 4) or may be formed fromnon-planar structures.

Antenna 40 include tunable components 102 such as tunable impedancematching circuit 102A and aperture tuning circuit 102B. Circuit 102B iscoupled between arm 108 and ground 104 in the example of FIG. 4, butthis is merely illustrative. Tunable circuits such as circuit 102B maybe coupled within arm 108, may be interposed within return path 110, mayform part of antenna ground 104, may be incorporated into a parasiticantenna resonating element, or may be incorporated into other antennastructures for antenna 40.

Circuit 102A and circuit 102B may be adjusted to adjust the performanceof antenna 40 during operation of device 10. For example, the presenceof an external object in the vicinity of antenna 40 may detune antenna40. Using circuitry such as circuitry 102A and 102B, antenna 40 can beadjusted to compensate for loading experienced due to the presence ofthe external object. Sensors such as sensors 130 and/or other sensorsmay be incorporated into device 10 in wireless circuitry 34 to gatherinformation on the operating conditions of antenna 40 and device 10.Sensors 130 may include, for example, temperature sensors for monitoringthe current operating temperature of antenna 40 and device 10, currentmonitoring circuitry for measuring antenna currents, voltage monitoringcircuitry for monitoring antenna voltages, power monitoring circuitryfor making antenna signal power measurements, and impedance measurementcircuitry for making impedance measurements (e.g., impedancemeasurements on matching circuit 102A, impedance measurements on antenna40, measurements of the impedance of a portion of antenna 40, etc.).Sensor data from sensors 130 may be used to adjust the operation ofantenna 40 (e.g., tunable circuits 102A and 102B), and to make otheradjustments to the operation of device 10 (e.g., output poweradjustments, antenna port adjustments, modulation scheme adjustments,radio access technology adjustments, etc.). With one suitablearrangement, some or all of the tunable circuitry of circuits such ascircuits 102A and 102B may be implemented on one or more integratedcircuits and sensors 130 may be implemented on these integratedcircuits. By co-locating sensors 130 and the switches and otheradjustable circuitry of circuits 102A and 102B on common integratedcircuit die, space within device 10 can be conserved and local (on-chip)processing circuits may be used to help process sensor signals formaking real time antenna adjustments.

FIG. 5 is a circuit diagram of an illustrative current sensor. As shownin FIG. 5, current sensor 130 may have parallel branches of transistorssuch as transistor branch 134 and transistor branch 136 coupled in acurrent mirror configuration between terminal 132 and terminal 144.Sensor 130 may measure current I flowing between terminals 132 and 144.Each branch of transistors may have a chain of series-connectedtransistors. The ratio of the sizes of the transistors in the respectivebranches determines the ratio of current Is to current Ib flowing inbranches 134 and 136, respectively. With one suitable arrangement, mostof current I flows through main branch 136 and a small representativeportion of current I flows through secondary branch 134. The ratio of Isto Ib is known, so measurement of the magnitude of current Is can beused to determine Ib and therefore total current I. The value of currentIs can be measured using digital ammeter 140 interposed within portion138 of branch 134. Ammeter 140 may contain an analog-to-digitalconverter that allows current measurements such as the values of Is, Ib,and/or I to be supplied as digital output signals on digital output path142. If desired, ammeter 140 or other portion of current sensor 130 maycontain nonlinear circuit elements to help convert high-frequencyradio-frequency antenna signals to lower frequency signals on whichcurrent measurements may be made.

FIG. 6 is a circuit diagram of an illustrative voltage sensor. Voltagesensor 130 of FIG. 6 may make voltage measurements on signals appliedacross terminals 146 and 148. Multiple parallel branches of transistorstacks such as branches Nh, Nm, and Nl may extend between terminals 146and 148. The transistors of sensor 130 may be field-effect transistors(FETs) that contain parasitic bipolar transistors and are characterizedby a snap-back voltage (e.g., 3 V or other suitable voltage). Eachbranch of transistors may contain a different number of transistorscoupled in series between terminals 146 and 148. The number oftransistors in each branch establishes a threshold voltage for currentflow for that branch. Each branch of sensor 130 will conduct currentwhen its threshold voltage has been exceeded, but will not conductcurrent when the voltage across terminals 146 and 148 is lower than itsthreshold voltage.

Consider, as an example, a scenario in which the transistor snap-backvoltage is 3 volts and in which branches Nh, Nm, and Nl contain 15, 10,and 5 transistors, respectively. In this illustrative configuration,branch Nh will be characterized by a threshold voltage Vh of 45 volts,branch Nm will be characterized by a threshold voltage Vm of 30 volts,and branch Nl will be characterized by a threshold voltage Vl of 15volts. A current sensor may be coupled in series with each branch. Forexample, current sensor AH may be coupled in series with the transistorsof branch Nh, current sensor AM may be coupled in series with thetransistors of branch Nm, and current sensor AL may be coupled in serieswith the transistors of branch Nl. Each current sensor may supply anoutput signal on a respective output that is indicative of whethercurrent is flowing through that sensor. For example, current sensor AHmay provide output signals on output 150, current sensor AM may produceoutput signals on output 152, and current sensor Al may produce outputsignals on output 154. The signal on outputs 150, 152, and 154 may bedigital signals (as an example).

If the voltage across terminals 146 and 148 is below Vl, no current willflow through the branches of sensor 130 and outputs 150, 152, and 154will be deasserted. If the voltage across terminals 146 and 148 isbetween Vl and Vm, outputs 150 and 152 will be deasserted and output 154will be asserted. When the voltage across terminals 146 and 148 exceedsVm and is less than Vh, current sensors AM and AL will assert outputs152 and 154, respectively, whereas output 150 will be deasserted(indicating that no current is flowing through branch Nh). If thevoltage across terminals 146 and 148 is greater than Vh, the outputs ofall three current sensors (i.e., outputs 150, 152, and 154 in thisexample) will be asserted.

The signals on the output path formed by outputs 150, 152, and 154serves as digital voltage measurement data for sensor 130 that isindicative of the magnitude of the voltage across voltage sensorterminals 146 and 148. If desired, other numbers of transistors may beincorporated into each branch of sensor 130, transistors with differentsnap-back voltages may be used, etc. The configuration of FIG. 6 inwhich there are three parallel chains of series-connected transistors ismerely illustrative.

Illustrative sensors 130 of FIG. 7 may be used to make impedancemeasurements (e.g., complex s-parameter measurements that can beprocessed to produce impedance data). Impedance sensor 130 may makesignal measurements on radio-frequency signals flowing on path 156 indirection 158 and direction 160. Directional coupler 162 taps signalsflowing on path 156 and provides theses signals to input ports IN ofswitch 164. Switch 164 routes input signals on ports IN to output portsOUT for measurement by receiver 168. The state of switch 164, which canbe controlled by applying control signals to control input 166, may beadjusted depending on whether tapped signals flowing in direction 158 ordirection 160 are being measured.

During impedance measurements, phase and magnitude measurements may bemade on the signals in path 156 (e.g., transmitted and reflectedsignals) using directional coupler 162, switch 164, and receiver 168.The output data from output 170 of receiver 168 may be processed toproduce a corresponding impedance measurement. Impedance sensor 130 maybe used to measure the impedance of an impedance matching circuit suchas circuit 102A of FIG. 4 or may be used to measure impedance forantenna 40 (e.g., by incorporating impedance sensor 130 within anantenna aperture tuner circuit such as tunable circuit 102B of FIG. 4).In general, impedance sensor 130 may be used to make any suitableimpedance measurement. The use of sensor 130 to measure impedance withincircuits such as circuits 102A and 102B of FIG. 4 is merelyillustrative.

FIG. 8 is a diagram of an illustrative temperature sensor. As shown inFIG. 8, temperature sensor 130 may include a temperature sensing elementsuch as temperature sensing element 172. Element 172 may be based on athermocouple structure, a temperature-sensitive resistive element, asemiconductor device such as a transistor or diode with a current thatvaries as a function of temperature, and/or other temperature sensingcircuitry. Analog-to-digital circuitry 174 may be used to producedigital output 176 that is indicative of the magnitude of thetemperature measured using temperature sensing element 172. Temperaturesensing element 172 may be used to measure the temperature of device 10in the vicinity of sensing element 172, may be used to measure thetemperature of an integrated circuit in which sensor 130 has beenimplemented, may be used to measure the temperature of transistors andother circuitry that is adjacent to sensor 130, and/or may be used inmaking other temperature measurements.

FIG. 9 is a diagram of an illustrative power sensor that may be used tomake power measurements on radio-frequency signals such as antennasignals in device 10. As shown in FIG. 9, power sensor 130 may beinterposed within path 184. Radio-frequency signals may flow along path184 (e.g., to and from an antenna or other radio-frequency component,within a portion of an antenna or matching circuit, etc.). Power sensingelement 178 may be coupled in path 184 and may be used to measure thepower of radio-frequency signals flowing on path 184. Power sensingelement 178 may be based on a diode, may contain one or moretransistors, may contain nonlinear elements, or may contain other powermeasuring circuitry. Analog-to-digital converter circuitry 180 may becoupled to power sensing element 178 and may convert analog powermeasurements made with power sensing element 178 to digital powermeasurement data on output 182.

FIGS. 10 and 11 are circuit diagrams of illustrative impedance matchingand antenna aperture tuning circuits of the type that may be used indevice 10. Illustrative locations at which sensors 130 may beincorporated into impedance matching circuit 102A and antenna tuningcircuitry 102B are shown in FIGS. 10 and 11, respectively. Theselocations are, however, merely illustrative. Sensors 130 (e.g., currentsensors, voltage sensors, temperature sensors, power sensors, impedancesensors, etc.) may be incorporated into wireless circuitry 34 at anysuitable location(s).

In the example of FIG. 10, impedance matching circuit 102A is coupledacross antenna feed terminals 98 and 100 in antenna feed 112. Antennafeed 112 is used to couple transmission line 92 to antenna 40.Transmission line 92 may include positive signal line 94 and groundsignal line 96. Impedance matching circuit 102A may contain componentssuch as series and shunt inductors 186 and series and shunt capacitors188 (as an example). Circuit 102A may be implemented using an integratedcircuit (e.g., a silicon-on-insulator integrated circuit, a siliconintegrated circuit die, etc.) such as integrated circuit 189. Componentssuch as inductors 186 and capacitors 188 may be implemented usingstructures on integrated circuit 189 or may be implemented usingexternal components that are coupled to the terminals in integratedcircuit 189.

Inductors 186 may be fixed inductors and/or adjustable inductors.Capacitors 188 may be fixed capacitors and/or adjustable capacitors.Other circuit components may be included in the circuitry of impedancematching circuit 102A if desired. The example shown in FIG. 10 in whichmatching circuit 102A includes a pair of fixed inductors and a pair oftunable capacitors is merely illustrative. During operation, sensorssuch as sensor 130 may be used to gather sensor data (e.g., currentdata, voltage data, temperature data, power data, impedance data, etc.).The sensor measurements made using sensor(s) 130 may be used inadjusting tunable circuitry such as tunable matching circuit 102A and/orother tunable antenna circuitry (see, e.g., tunable circuit 102B of FIG.4) or may be used in making other adjustments to wireless circuitry 34(e.g., transmit power adjustments, antenna port assignment adjustments,modulation scheme adjustments, communications frequency adjustments,etc.). As an example, real time sensor measurements made with sensor 130in tunable matching circuit 130 may be used to determine how to makeappropriate adjustments to tunable matching circuit 130 (e.g.,adjustments to enhance wireless performance, adjustment to satisfylimits on transmitted power, adjustments to prevent undesiredinterference, etc.). Sensor 130 may be interposed in line 94 of path 92or may be located at other portions of tunable matching circuit 102A.

Matching circuit 102A may be implemented using a semiconductor devicesuch as a silicon integrated circuit (e.g., a silicon-on-insulatorcircuit, etc.). For example, circuit 102A may include switchingcircuitry, control circuitry, storage (e.g., registers for storingadjustable component settings), and communications interface circuitry.Some components of circuit 102A (e.g., discrete surface mount technologycomponents such as SMT inductors or capacitors) may, if desired, beimplemented using separate components mounted on a common printedcircuit. For example, circuit 102A may have switch ports and fixedinductors that are used in conjunction with a switch in circuit 102A maybe coupled to these switch ports. Preferably some or all of thecircuitry of sensor 130 (e.g., sensing elements and/or analog-to-digitalconverter circuits, etc.) may be incorporated onto the samesemiconductor device as the switching circuits and other integratedcircuit portions of circuit 102A. The use of a common integrated circuitto implement some or all of impedance matching circuitry 102A and someor all of sensor 130 may help avoid unnecessary duplication of devicecomponents and may minimize space requirements for incorporating sensorsinto tunable circuits for wireless circuitry 34.

FIG. 11 shows how tunable antenna circuit 102B may include asemiconductor integrated circuit such as integrated circuit 196 (e.g., asilicon-on-insulator integrated circuit, a silicon integrated circuit,or an integrated circuit formed from another suitable semiconductor). Inthe illustrative configuration of FIG. 11, circuit 102B also includesexternal components such as components 194. Components 194 may beinductors (e.g., surface mount technology inductors), may be capacitors,or may be other external components that are coupled to the circuitry ofintegrated circuit 196 using traces on a printed circuit or othersubstrate.

Integrated circuit 196 may contain switching circuitry 206. Switchingcircuitry 206 may include transistor switches 208. Switches 208 may beformed from one or more transistors such as field-effect transistors. Acircuit arrangement of the type shown in FIG. 11 may be used toimplement a tunable component such as a tunable inductor. Components 194and switching circuitry 206 may be coupled between terminals 190 and192. Control circuitry may be used to supply control signals toswitching circuitry 206 that direct switching circuitry 206 to switchone or more of components 194 into place between terminals 190 and 192.In this way, the inductance (or other circuit characteristics) ofcircuit 102B between terminals 190 and 192 may be adjusted in real timeto tune antenna 40 or perform other adjustments to wireless circuitry34. Switching circuitry such as switching circuitry 206 may be used inproviding components such as components 186 and 188 of FIG. 10 withtuning capabilities (e.g., by switching internal and/or externalcomponents into use for circuit 102A of FIG. 10).

Sensors 130 may be incorporated into paths such as the paths betweenswitches 208 and respective components 194, may be incorporated into apath between switching circuitry 206 and terminal 192, may beimplemented as stand-alone sensors on the die of integrated circuit 196(see, e.g., temperature sensor T of FIG. 11), or may be incorporatedelsewhere in the circuitry of integrated circuit 196.

If desired, integrated circuit 196 (and integrated circuits such asintegrated circuit 189 of FIG. 10) may include control circuitry 200.Control circuitry 200 may include a microcontroller or other hardwiredcircuitry that facilitates control operations for circuit 196 and otherwireless circuitry 34. Storage 202 (e.g., registers, blocks of memory,etc.) may be included within control circuit 200. Storage 202 may beused to store settings for integrated circuit 196. For example, a switchsetting for switching circuitry 206 may be stored in a register instorage 202. This register setting may be used, for example, todetermine which of components 194 are switched into use. In anarrangement in which components 194 are inductors (e.g., externaldiscrete inductors or inductors implemented as part of integratedcircuit 196), the register setting may be used to establish a selectedinductance value for circuit 102B between terminals 190 and 192. In anarrangement in which components 194 are capacitors, the register settingmay be used to select a desired capacitance for circuit 102B. Tunablecircuit 102B may, in general, include any suitable tunable circuits(e.g., switching circuitry 206, inductors, capacitors, etc.) and thesettings of tunable circuit 102B may be adjusted by control circuitry200 in real time based on settings loaded into storage 202 or based oncontrol signals supplied to switching circuitry 206 from externalcontrol lines.

To facilitate communication with external control circuitry (e.g., aprocessor in control circuitry 30 of FIG. 3), antenna tuning integratedcircuit 196 (and integrated circuits such as integrated circuit 189 ofFIG. 10) may be provided with a communications interface such ascommunications interface 204. Interface 204 may be, for example, an RFFEinterface (i.e., a communications interface compliant with the MIPI®Alliance radio-frequency front end specification). Other types of serialand parallel communications interfaces may be used for interface 204 ifdesired. Path 210 (e.g., a digital communications bus) may be used toconvey signals between interface 204 and external control circuitry indevice 10 (e.g., to provide sensor data from sensors 130 to externalcontrol circuitry, to receive control signals from external controlcircuitry that are to be stored in storage 202, or to otherwise supportcommunications between integrated circuit 196 and other circuitry indevice 10).

During operation, one or more sensors 130 on integrated circuit 196 maybe used to gather data on the operating conditions of wireless circuitry34. This data may be processed locally by control circuitry 202 inintegrated circuit 196 and/or may be conveyed to control circuitryelsewhere in device 10 (see, e.g., control circuitry 30 of FIG. 2).Control circuitry external to integrated circuit 196 and/or controlcircuitry 202 within integrated circuit 196 may be used in adjusting theoperation of adjustable wireless components. For example, the externaland/or internal control circuitry may adjust switching circuitry 206(e.g., switches 208) to switch a desired component 194 into use or tootherwise optimize performance.

Due to the presence of non-linear parasitics, there is a risk thatwireless circuitry such as switching circuitry 206 will generate signalharmonics. Switches 208 may contain stacks of field-effect transistors.In an open-stack configuration, harmonics can arise from parasiticnon-linear capacitances. In an ON state, a transistor stack may becharacterized by non-linear parasitic resistances that can give rise tosignal harmonics.

If desired, harmonics can be cancelled by appropriate adjustment ofcompensation circuits. For example, parasitics in a stack offield-effect transistors in a switch 208 can be compensated byappropriate adjustment of a non-linearity compensating circuit element208′ in that switch 208 (e.g., a parallel stack of field-effecttransistors used for non-linearity compensation). These compensatingadjustments to circuit elements 208′ or other non-linearity compensatingelement may be made using data from sensors 130 (e.g., temperature data,voltage data, current data, impedance data, etc.). For example,temperature data, impedance data, current data, voltage data, powerdata, and other data from sensors 130 may be used to determine how tomake circuit adjustments to elements 208′ to minimize signal harmonics.If desired, the circuit adjustments that are made based on sensor datamay be used to control gate biases and body biases for field-effecttransistors (e.g., stacks of field effect transistors in switches 208,transistors in elements 208′, etc.). Data from sensors 130 may also beused adjusting tunable components 102 of FIG. 3 (e.g., by adjustingswitching circuitry 206, etc.). For example, data from sensors 130 maybe used to tune circuitry 102A and/or 102B to compensate for antennaloading effects (e.g., impedance changes due to the presence of a bodypart of a user or other external object in the vicinity of antenna 40).

There may, in general, be any suitable number of antenna tuner switchingmodules with integrated sensors in device 10 (e.g., one or moreintegrated circuits 196 and/or one or more integrated circuits 189).There may be one circuit 196 used for implementing aperture tuningcircuit 102B, there may be one circuit 189 used for implementingimpedance matching circuit 102A, both circuits 102A and 102B may beimplemented using a pair of integrated circuits, additional integratedcircuits 196 and/or 189 may be incorporated into one or more antennas40, etc.

The foregoing is merely illustrative and various modifications can bemade by those skilled in the art without departing from the scope andspirit of the described embodiments. The foregoing embodiments may beimplemented individually or in any combination.

What is claimed is:
 1. An electronic device, comprising: antennastructures that transmit and receive wireless signals; and a tunablecircuit coupled to the antenna structures to adjust the antennastructures, the tunable circuit comprising: electrical components; andan integrated circuit having switching circuitry configured to switch aselected one of the electrical components into use and having a sensorconfigured to gather sensor data.
 2. The electronic device of claim 1,wherein the wireless signals comprise radio-frequency signals that flowthrough the switching circuitry, and wherein the integrated circuitfurther comprises: a communications interface coupled to a digital busthat conveys configuration settings for the switching circuitry, andthat conveys the sensor data to circuitry external to the integratedcircuit; control circuitry that receives the sensor data from the sensorand makes adjustments to the switching circuitry based on the receivedsensor data; and storage coupled to the control circuitry that storesthe configuration settings for the switching circuitry.
 3. Theelectronic device defined in claim 1, wherein the sensor comprises agiven sensor selected from the group consisting of: a voltage sensor, acurrent sensor, a temperature sensor, a power sensor, and an impedancesensor.
 4. The electronic device defined in claim 1, wherein theelectrical components comprise inductors.
 5. The electronic devicedefined in claim 1, wherein the electrical components comprisecapacitors.
 6. The electronic device defined in claim 1, wherein theintegrated circuit further comprises: storage that stores configurationsettings for the switching circuitry.
 7. The electronic device definedin claim 1, wherein the integrated circuit further comprises: acommunications interface.
 8. The electronic device defined in claim 7,wherein the integrated circuit further comprises: a digital bus that iscoupled to the communications interface, that conveys configurationsettings for the switching circuitry, and that conveys data from thesensor to circuitry external to the integrated circuit.
 9. Theelectronic device defined in claim 1, wherein the integrated circuitfurther comprises: control circuitry that receives data from the sensorand makes adjustments to the switches based on the received data fromthe sensor to minimize signal harmonics in the switches.
 10. Theelectronic device defined in claim 9, wherein the sensor comprises atemperature sensor, and wherein the control circuitry makes theadjustments to the switches based on temperature data from thetemperature sensor.
 11. The electronic device defined in claim 9,wherein the sensor comprises an impedance sensor, and wherein thecontrol circuitry adjusts the switches based on impedance data from theimpedance sensor.
 12. The electronic device defined in claim 11, whereinthe impedance sensor comprises: a directional coupler; and a receiver.13. An integrated circuit configured to tune an antenna using electricalcomponents that are coupled between the integrated circuit and theantenna, the integrated circuit comprising: control circuitry; a sensor;and switching circuitry configured to tune the antenna by selectivelyswitching one of the electrical components into use based on controlsignals from the control circuitry.
 14. The integrated circuit definedin claim 13, wherein the switching circuitry includes transistors,wherein the integrated circuit further comprises: a non-linearitycompensating element that compensates for non-linearity in thetransistors of the switching circuitry and that is adjusted by thecontrol circuitry based on sensor data from the sensor; a communicationsinterface coupled to a digital bus that conveys configuration settingsfor the switching circuitry, and that conveys the sensor data tocircuitry external to the integrated circuit; and storage coupled to thecontrol circuitry that stores the configuration settings for theswitches.
 15. The integrated circuit defined in claim 13, furthercomprising: a digital communications bus; and a communications interfacethat conveys sensor data from the sensor over the digital communicationsbus to a processor external to the integrated circuit.
 16. Theintegrated circuit defined in claim 13, wherein the switching circuitryincludes transistors and at least one non-linearity compensating elementthat compensates for non-linearity in the transistors, and wherein thecontrol circuitry adjusts the non-linearity compensating element basedon sensor data from the sensor.
 17. The tuning circuit defined in claim13, wherein the sensor comprises a given sensor selected from the groupconsisting of: a temperature sensor, a current sensor that includes acurrent mirror and an ammeter with a digital output, and a voltagesensor with a plurality of parallel chains of transistors each coupledto a respective current sensor.
 18. Antenna aperture tuning circuitry,comprising: electrical components; and a integrated circuit coupled tothe electrical components, wherein the integrated circuit includes: asensor that produces sensor data; and switching circuitry interposedbetween the sensor and the plurality of electrical components thatswitches at least one of the electrical components into use based on thesensor data.
 19. The antenna aperture tuning circuitry of claim 18,wherein the integrated circuit further comprises: a communicationsinterface coupled to a digital bus that conveys configuration settingsfor the switching circuitry; and storage that stores the configurationsettings for the switching circuitry.
 20. The antenna aperture tuningcircuitry of claim 18 wherein the integrated circuit further comprises:control circuitry that adjusts the switching circuitry to reduce signalharmonics caused by non-linear parasitic characteristics of theplurality of switches.